<form name="form_admin"  method="POST" action="<?php echo formEditAction()?>" onsubmit="return check(this)" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="id" value="<?php echo $id?>">
<table width="100%"  cellpadding="0" cellspacing="0" id="tbledit">
	<tr>
		<td width="100"><strong><?php echo _NAME?></strong></td>
		<td colspan="2">
            <input name="cName" id="cName" value="<?php echo $banner['cName']?>" type="text" class="normal3" />
            <select name="TourId">
                <?php echo ListOptionTour($banner['iTourId'])?>
            </select>
        </td>
	</tr>
	<tr>
	  <td><strong><?php echo Status?></strong></td>
	  <td colspan="2"><select name="Status" id="Status" style="width:140">
        <?php echo ListStatus($banner['iStatus'])?>
      </select></td>
    </tr>
	<tr>
		<td><strong><?php echo Image?></strong></td>
		<td colspan="2">
            <?php echo inputFile('ImgIntro',$banner["cImage"])?>
		</td>
	</tr>
	
	<tr>
		<td><strong><?php echo _DESCRIPTION?></strong></td>
		<td colspan="2">
			<textarea name="Description" id="Description" style="width: 90%; height:100"><?php echo $banner['cDescription']?></textarea>		</td>
	</tr>

</table>
</form>
<script>

function check(form)
{
	if(form.cName.value=="")
	{
		alert("Please enter name");
		form.cName.focus();
		return false;
	}
	if(form.ImgIntro.value=="")
	{
		alert("Please choise image");
		form.ImgIntro.focus();
		return false;
	}
	return AIM.submit(form,null,true);
}
</script>